package com.sugar.real.estate.module.business.controller.admin.buildhouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

@Schema(description = "管理后台 - 建房新增/修改 Request VO")
@Data
public class BuildHouseSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "7571")
    private Long id;

    @Schema(description = "位置中文", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "位置中文不能为空")
    private String locationZhCn;

    @Schema(description = "位置英文", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "位置英文不能为空")
    private String locationEnUs;

    @Schema(description = "图片（多个逗号分隔）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "图片不能为空")
    @Size(min = 1, message = "图片不能为空")
    private List<String> showImages;

    @Schema(description = "土地面积（单位：㎡）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "土地面积（单位：㎡）不能为空")
    private BigDecimal landArea;

    @Schema(description = "内容中文详情", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容中文详情不能为空")
    private String contentZhCn;

    @Schema(description = "内容英文详情", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容英文详情不能为空")
    private String contentEnUs;

    @Schema(description = "关联的设计方案")
    private List<Long> planIds;

}